package game;

import java.awt.Color;

public class Booster extends Field {
	public static final long serialVersionUID = 1L;
	protected int boost;
	
	public Booster(Level g, int x, int y, int w, int h, Color c, int b){
		super(g, x, y, w, h, c);
		boost = b;
	}
	
	@Override
	public void calculateIntersectEffects(GameRectangle g) {
		if(g instanceof Sprite){
			((Sprite)g).xMotion = boost;
		}
	}

	@Override
	public void update(){}
}
